package cat {
import cat.state.*;

/**
 * Список состояний
 */
public class CatStateList {
    public static const IDLE:int = 0;
    public static const READY:int = 1;
    public static const HIJACK:int = 2;

    private var states:Array;

    public function CatStateList(catModel:CatView) {
        states = [
            new CatStateIdle(catModel),
            new CatStateReady(catModel),
            new CatStateHijack(catModel),
        ];
    }

    public function getById(stateId:int):ICatState {
        return states[stateId];
    }
}
}